package com.wink.admin.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


/**
 * 用户表
 *
 * @author xw
 * @date 2020/10/27 11:45
 */
@Entity
@Table(name = "sys_user")
@TableName("sys_user")
@EqualsAndHashCode(callSuper = true)
@Data
@org.hibernate.annotations.Table(appliesTo = "sys_user", comment = "用户表")
public class SysUser extends BaseEntity {

    /**
     * 用户名
     */
    @Column(name = "user_name", columnDefinition = ("varchar(50) not null comment '用户账号'"))
    private String userName;

    /**
     * password
     */
    @Column(name = "password", columnDefinition = ("varchar(200) not null comment '密码'"))
    private String password;

}
